package _11_整理题目._Spring基础原理._设计模式._01_策略模式._计算器;


public class Test {
    public static void main(String[] args) {
        Calculator calculator = new Calculator();

        calculator.setOperation(new OperationAdd());
        System.out.println(calculator.doOperation(5, 2));

        calculator.setOperation(new OperationMulti());
        System.out.println(calculator.doOperation(5, 2));
    }
}
